package test3;

import java.io.*;
import java.net.Socket;

public class client {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("zjc的电脑",4456);
        OutputStream ost = socket.getOutputStream();
        FileInputStream stream = new FileInputStream("C:\\1.1\\4.txt");
        byte[] bytes = stream.readAllBytes();
        ost.write(bytes);
        stream.close();
        ost.close();
        socket.close();

    }
}
